home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form POSTIT
- Appearance = 0 'Flat
- AutoRedraw = -1 'True
- BackColor = &H80000005&
- BorderStyle = 3 'Fixed Dialog
- Caption = "Numatic International 'Post-Note'"
- ClientHeight = 5640
- ClientLeft = 876
- ClientTop = 1020
- ClientWidth = 6828
- ControlBox = 0 'False
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 7.8
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 6024
- Icon = "POSTIT.frx":0000
- Left = 828
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 5640
- ScaleWidth = 6828
- Top = 684
- Width = 6924
- Begin VB.TextBox NAMER
- Appearance = 0 'Flat
- Height = 288
- Left = 4560
- TabIndex = 7
- Text = "0"
- Top = 840
- Visible = 0 'False
- Width = 492
- End
- Begin Threed.SSPanel STATUSPANEL
- Align = 2 'Align Bottom
- Height = 492
- Left = 0
- TabIndex = 3
- Top = 5148
- Width = 6828
- _Version = 65536
- _ExtentX = 12044
- _ExtentY = 868
- _StockProps = 15
- BackColor = -2147483633
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Arial"
- charset = 0
- weight = 700
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- BevelWidth = 2
- Alignment = 4
- Begin Threed.SSPanel messagenumber
- Height = 336
- Left = 3264
- TabIndex = 9
- Top = 84
- Width = 3468
- _Version = 65536
- _ExtentX = 6117
- _ExtentY = 593
- _StockProps = 15
- Caption = "Message #102"
- BackColor = -2147483633
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Arial"
- charset = 0
- weight = 700
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- BevelWidth = 2
- End
- Begin Threed.SSCommand Command3D1
- Height = 350
- Left = 2112
- TabIndex = 6
- Top = 96
- Width = 972
- _Version = 65536
- _ExtentX = 1715
- _ExtentY = 614
- _StockProps = 78
- Caption = "Reply"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Arial"
- charset = 0
- weight = 700
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- End
- Begin Threed.SSCommand printbutton
- Height = 348
- Left = 1152
- TabIndex = 5
- Top = 96
- Width = 852
- _Version = 65536
- _ExtentX = 1503
- _ExtentY = 614
- _StockProps = 78
- Caption = "Print"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Arial"
- charset = 0
- weight = 700
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- End
- Begin Threed.SSCommand closebutton
- Height = 348
- Left = 192
- TabIndex = 4
- Top = 96
- Width = 852
- _Version = 65536
- _ExtentX = 1503
- _ExtentY = 614
- _StockProps = 78
- Caption = "Close"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Arial"
- charset = 0
- weight = 700
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- End
- End
- Begin Threed.SSPanel Panel3D2
- Align = 1 'Align Top
- Height = 4692
- Left = 0
- TabIndex = 1
- Top = 492
- Width = 6828
- _Version = 65536
- _ExtentX = 12044
- _ExtentY = 8276
- _StockProps = 15
- Caption = "Panel3D2"
- BackColor = -2147483633
- BevelInner = 1
- Autosize = 3
- Begin VB.TextBox recordid
- Appearance = 0 'Flat
- Height = 300
- Left = 2976
- TabIndex = 8
- Top = 1536
- Visible = 0 'False
- Width = 3084
- End
- Begin VB.TextBox DATUM
- Appearance = 0 'Flat
- BackColor = &H0000FFFF&
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 13.8
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 4572
- Left = 60
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 2
- Text = "POSTIT.frx":030A
- Top = 60
- Width = 6708
- End
- End
- Begin Threed.SSPanel status
- Align = 1 'Align Top
- Height = 492
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 6828
- _Version = 65536
- _ExtentX = 12044
- _ExtentY = 868
- _StockProps = 15
- Caption = "Message From :"
- BackColor = -2147483633
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Arial"
- charset = 0
- weight = 700
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- BevelWidth = 2
- BevelInner = 1
- End
- Attribute VB_Name = "POSTIT"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub closebutton_Click()
- Dim NoteDB As Database
- Dim NoteDS As Recordset
- ' get the relevant record
- Set NoteDB = OpenDatabase(PN_DATABASE, False)
- SQL$ = "SELECT * FROM NOTELOG WHERE RECORD_ID = " + Trim$(RECORDID.Text)
- Set NoteDS = NoteDB.OpenRecordset(SQL$, dbOpenDynaset)
- REP = 0
- ' if we got the record, check if we must reply
- If NoteDS.RecordCount <> 0 Then
- If NoteDS.Fields("REPLY_REQUIRED") = -1 Then REP = 1
-
- ' mark this message as being read (and when it was read)
- NoteDS.Edit
- NoteDS.Fields("READ") = -1
- NoteDS.Fields("READ_ON") = Now
- NoteDS.Update
- End If
- NoteDS.Close
- NoteDB.Close
- DoEvents
- serverform.Data1.Refresh
- ' we must reply to the message
- If REP = 1 Then
- A = MsgBox("The sender requested that you reply to this message.", 64, "For Your Information")
-
- Set NoteDB = OpenDatabase(PN_DATABASE, False)
- SQL$ = "SELECT * FROM NOTELOG WHERE RECORD_ID = " + Trim$(RECORDID.Text)
- Set NoteDS = NoteDB.OpenRecordset(SQL$, dbOpenDynaset)
-
- ' as long as we got the record...
- If NoteDS.RecordCount <> 0 Then
- NoteDS.Edit
- ' mark as read, and replied
- NoteDS.Fields("READ") = -1
- NoteDS.Fields("READ_ON") = Now
- NoteDS.Fields("REPLIED") = -1
- NoteDS.Fields("REPLIED_ON") = Now
- NoteDS.Update
- End If
-
- NoteDS.Close
- NoteDB.Close
- DoEvents
- SENDER = status.Caption
- ' shell the post-sender program, with the originator's name (reply mode)
- X% = Shell(PN_POSTSEND_PATH + " " + NAMER.Text, 1)
- DoEvents
- End If
- Unload Me
- End Sub
- Private Sub Command3D1_Click()
- Dim NoteDB As Database
- Dim NoteDS As Recordset
- Set NoteDB = OpenDatabase(PN_DATABASE, False)
- SQL$ = "SELECT * FROM NOTELOG WHERE RECORD_ID = " + Trim$(serverform.RECORDID.Text)
- Set NoteDS = NoteDB.OpenRecordset(SQL$, dbOpenDynaset)
- If NoteDS.RecordCount <> 0 Then
- ' mark as read, and relied
- NoteDS.Edit
- NoteDS.Fields("READ") = -1
- NoteDS.Fields("READ_ON") = Now
- NoteDS.Fields("REPLIED") = -1
- NoteDS.Fields("REPLIED_ON") = Now
- NoteDS.Update
- End If
- NoteDS.Close
- NoteDB.Close
- DoEvents
- serverform.Data1.Refresh
- SENDER = status.Caption
- ' shell the post send program, with originator's name (reply mode)
- X% = Shell(PN_POSTSEND_PATH + " " + NAMER.Text, 1)
- DoEvents
- Unload Me
- End Sub
- Private Sub printbutton_Click()
- ' print the message - note, no word-wrap here, but could be installed.
- Printer.Print
- Printer.Print status.Caption
- Printer.Print
- Printer.Print datum.Text
- Printer.EndDoc
- A = MsgBox("Printed Your Post-IT Note", 64, "For Your Information")
- End Sub
-